package com.company.exp2.factory;

import com.company.exp2.station.Station;
import com.company.exp2.station.impl.DefaultStation;
import com.company.exp2.typeEnum.StationType;

/**
 * @author dyy
 * station 的工厂类
 */
public class StationFactory {

    private static final StationType DEFAULT_TYPE = StationType.DEFAULT;

    public static Station createInstance(StationType type) {
        return new DefaultStation();
    }

    public static Station createDefaultInstance() {
        return createInstance(DEFAULT_TYPE);
    }

}
